import http from "../../request.js";

//获取商品详情数据
function productDetail(productId) {
	return http({
		url:`/lejuClient/product/productDetail/${productId}`
	})
}

// 购物车1.生成确认单
function addPreOrder(data) {
	return http({
		url:'/lejuClient/order/addPreOrder',
		method:'post',
		data
	})
}

// 添加至购物车
function addCart(data) {
	return http({
		url:'/lejuClient/cart/addCart',
		method:'post',
		data
	})
}
export { productDetail , addPreOrder , addCart }
